//命名空间的使用
//明明空间就是解决这个问题的,命名空间,又称为内部模块,被用于组织又些具有内在联系的特征和对象
namespace shuaiGuo{
    export class Dehua{
        public name:string = '刘德华';
        public talk(){
            console.log('我是帅哥刘德华');
        }
    }
}


namespace bajie{
    export class Dehua{
        public name:string = '马德华';
        public talk(){
            console.log('我是二师兄马德华');
        }
    }
}

let dehua1:shuaiGuo.Dehua = new shuaiGuo.Dehua();
let dehua2:bajie.Dehua = new bajie.Dehua();
dehua2.talk();

